Make routines accept instances that are callable

As noted on issue #85 I added the possibility of passing callable instances to routines. Let me hear what you people think, please.