Add support for max_path_length of zero