Update prefix detection