Prog to analyse MCS data