Finished state 5 and 8