Make function re-runnable