Added directions calculation