Added more support for IE.