Added particle and instancing utility code.