Added basic state manager functionality.