Added checks for existence.