Improve liquid snippet