Moved Logic to Routes.php