First version of threading code, bleeding edge ... could eat your kitten