Got the id assignation working