Draft of main script