Added a handler function subscriber type

This implement #50