sleep can be part of the custom detect_init_func.