Add different approach for getting distance