Added thread extensions class