Made a few changes to CRequest.php