Add MJFoundation code