Added StreamThread,
including changes in files.
Merge branch 'cetin'