Closes #33, id's are now set on open