Removing unnecessary messages