Simplified the basic flow of the api.