Added support for passing in implementing class as a message