Added threads and updated VM instruction set