Reduce max and average complexity