Fixed invalid thread loading error
Implemented open thread feature
Closed Issue #4