Fixed gamemode corruption, add developer hooks