Critical changes to update function