Added new comparison code