Changed a zmax to a ltzmax in quickCurve.