Add some utility functions.