Changed the kick function