Move func SetHandler so it is next to SetHandlerInit