Renames before updating files
Added changes for logging and new patch