When creating a new object, mark it as new.