Added boolean to display messages