Changed Stream type to Data(I/O)Stream