Rewrote functions for IC 8-10, deleted first implementations