Incidentally @caesar2164 "MONGO_MODULESTORE_TYPE" is not defined in this file. Please be sure to test this code on XML backed courses as well as Studio backed ones.