Some MSc analysis code update