Changed receive() behavior to look for instances of a class (includes subclasses) rather than an exact class