Adding direction in the Query