Collect events in a separate method.