Added --truncate parameter to process.py