Added checks to see if files exists.