Fixed Z axis calculation

Fixed a Z axis calculation where you specifically define the length of
the Z extrusion.