Made extension compatible with MobileFrontend extension.