Move update to a class.