Update cube object.