Updated the way the request method is divined