MOdifed to work on IE