Created function to change the ID, but main fails.