Add a function to build the signature pipeline.
Add the -threads command line flag.