Added functionality for gettin the source and string representations of the script and individual quantities