Assign ID at construct time.