Added utility functions for api app