Built some functions for the API manager