Fixed bug in AUTO_FUNCT logic (related to changing to pipe-fed)