Added more functions for convenience.