Fix for #142, actually use the z_offset reference if requested