Merge the API functions doing almost the same thing.