Model generator.