Add main script v1.2