Do as little work in Detect as possible