Use purgeWrite in tutorial case