Added hooks for require() and compile