detection time done, save for debugging