Updated to support old IE