Added check for finalize in addPerson.