Made message() method slightly more resilient to be called against classes