Implementing getZFromConvPair