Implemented state tracking using EventStore