Move IDO stuff to file.