Adds check to see if file exists.