Added generic message method for sending messages