Add a funtion of Monitor file