Added more helper functions.