Refactored controllers into one class, added loggers.