Adding command-line option to set threads with -t or --threads