Added getMessages to rules