Updating homing offset code