Is there any reason to make this a separate snippet? It seem the whole thing is fairly generic anyway...