Embedded code for SMORES