RefScript's changes