More accurate direction detection.