Added Update function