Expanding scripts