Added code so that plain old model preserves existing attribute values.