Made dz crown variable. Improved ib calculation.