Move eject code