Add ending state