Moved require to a better place