Moved "require" to before hook.