Original MSI 001 R script