Code duplication of HUD updating moved to func