Updagint the threading model