Allow configuration of the handler from outside