Broke out the addGhostAndEcsUnits callback out into it's own function