Add some runtime parameters to control sampling period and output filename