New Threading, better locking