Add some more utility functions.