CheckAndSelectMass added to compiler.

Inserted in some tasks as well.