Changed conditions to use request_methods and named to use name