Rationalization of scripts