Added better handling of old IE browsers.