Taking direction into consideration