Fixed the threading issues using the novel technique of not using threads... still not rendering, though.