Limit path finding max complexity