Added 'error.sd' option to moPrep