Remove "unsafe" from eventsPending