Made it so that notifications would be removed when they are not needed.