Fixes issue with previous simulation remaining after purkinje loaded.
Changes to script behavior.