Update to compinference.m