Add assign function.