Added script status functionality