Moved into a much cleaner method for handling requests, removing clutter