Added main script body