Added identity generation for constructors.