Refactored arg parsing code out of nbd_plate_mcmc scripts