Changed the interface of ejecting