Corrected output and assignment of metadata
Corrected MCP corrections after functions