Implemented statebus version. First commit.