Eliminate superfluous 'ifor' function