Slight modifications to dss.js