Add main script
Merge branch 'chin'