Remove unused argument
Add eve nt to Magento object generation
Create XML on Magento object generation