Add a state integration
Merge pull request #18 from dawehner/state

Add state integration