Repairs .function