Changed back to sync repeated task and made the run() function launch a
async task