Implemented some feature detection.