Minor change to detect script