#1 Detect direction