Removed unnecessary  file validation.