Added hooks to routes files, generating dynamically modules