Added EOD logic as datastream for Archive