Do not show stacktrace. Register function.