Moved code to IE class