Electroweak corrections and a possible ZZ' mixing are treated simultaneously using a generalization of the form factor approach. The results are implemented in the package ZEFIT. It is used together with (ZF)I(T)T(ER) to make lineshape fits to cross sections and asymmetries within Z' models. It has been applied to published LEP data to obtain limits on the ZZ' mixing angle.