Removed the get direction function