Added threading to package file.