Added thread instruction.
Removed concept of individual thread streams.
Moved labels and variables to global scope.