Updated to reflect changes in Graywulf: added OnSetMetadata.
Table names are taken from block names.