Improved gamemode protection.