Added update function on fabric.