Added an internal sleep() function for site mon waiting