Add some helper functions.