Adding first draft of main script.