Changed monitor script.