Adding some debugging around setting of primary key id value.