Further working towards getting threading working