Small changes to mcds.js