Adapted for the new snippet procession logic