Removed logic from Routes and created Controllers.