Updated sript