Changed File.exists? to File.exist? to avoid warnings.