Helpers.php modified to use Request class