Set `level` instead of `levelIdx`, and default it correctly.