Added Compatibility for Magento 1.7.0