Adding direction API