Add feature detection code snippet