Added support for IE.