Support function as a handler