Adding last nights code from Threading: NOT QUITE WORKING