Added block update code