Add methods for getting and setting scripts of simulation