Forked to be compatible with Magento 1.5.1.0