Moved HUD generation to main script