Added message array loop