Added homing functionality.