Tweak while snippet