Pass metadata in interaction.

Close #1306.
Metadata