Direction logic