Added max_path_length option