Added functionality to parse client requests