Reverted implementation of threading
Merge remote-tracking branch 'origin/master'