Added metadata injection support and fixed bug with formatting of API warning dialog.