Detection Routine checks stack for detected units.