Improved AFK detection