Create new aef auto repair function