Dead code
Choose the number of threads
TODO
Fix stop