Secured the logging and the events controller.