Activate performance measurement in all patterns.
Fix m flag bug.
Update event generation.
Little updates, clean up.