Updated Instruction to detect direction