Rewrites events.res