Factor to one script.
Factor to one script.