Added main monitoring loop listing.