Added saving of user defined _id value.