added find events code.