Changed so that id auto updates on creation