Use a function instead of a macro to register the handler