Helper functions should be before request method