Perform API callbacks on the main queue