Use 'is instead of '==' in a few places.