Adding new targets for the thread version.
Addind the base code for the thread version.