Update erode.coffee to use check flag.