Event 'metadata' 

Aims to solve #1834.

This is a work in progress.