Add the update funtion but not finish.