Add homing function.