Initial comparison code.