Refactoring running actions.