Implemented state machine with title state.
Resolve merge conflicts.