Added double dispatch for comparison