Added threads supports [TODO added]