Chalk out the inference code.