Added a handler function subscriber type

This implements #50