Adding threading in a new way