Added: Threading

It supports threading now.