Setting started flag to true when started