Request Parsing logic