Refactored GhostManager update method into submethods.