Changes to assign user ids to pins