Fixed bug with output stream, made data table.