Added some IE compatibility