Simplified the required fields API method and updated the readme with an example of a custom callback