Add local detection