Revised monitoring script for Selexor (work in progres)