Modified so file and dir lengths are standard