Code to detect delta spot