Generalized code.