Look at LengthDir function