Added a bit of request parsing.