Added comparing method