Update and add Assign function