Clean run() function