foo
Added app-state. Not sure yet how to use it right..