Implemented chain comparasion.