Revert back to fanin function