Added autodetect sample