Calling corresponding methods from API functions