Added HUD logic.