* Add initial version of this code cleaned up version that can be found on monitoringexchange