Support function as a handler, v0.1.2