Added a run method for CollectState