Saving and loading script objects.