Added support for feature mode and autopairing.