Some minor object comparison and minipulation code.