Added pickling of config variable - saves state upon exit.