Added proper inactive-kick function