Changed detect script