Pass metadata in interaction.

Close #1306.