Added -P to create a data file w/ Q, D and C per line