Add new events to the Perl and C monitor examples