Generify the code.