Moving staging script to separate file.