Update main script