Updated the autofish code.