Added use of handleRequest method.

Simplified a little that kind of if statement.