Added torqueScript generating function