Added sign matching calculations