Moving require calls outside of log messages