Started working on InstantiateScript functions