Moved outputDataSample to output