Edit main and add initial scripts