Rubbish first attempt at threading.