Moved repairing to after renaming to include the current repair amount in the repair calculation (may reduce required resources)