Added more utility functions.