A limit is set for maximum number of paths.