Revamped state updating r5

Error Output