Updated replace_file method
Updated rename_file method
Updated synchronize method