Adds mask class; Updates all classes.