Improve admin script
(This also fixes the kick function)