Added source files for threading