Added enum class for session state.