API for DSMCode