Updated controllers/ThomasController.php