Refactor using UV_AsyncAfter template function