Renamed the variable use_direction to search_direction.  Stronger comment.