Wrapped executing for run in a function