Imported IIR designer code from Svarog.