- Improved detect completefunc.