Changed setMessage to class method