Cleaning up snippet