Added function to trigger output generation from gamemode