Adds basic object comparison code