Added polarity feature.