Extend the reduce_data script to take command line arguments