Add code to write success or failure to event log.