Updating DEM scripts with Ishikawa's mods