Refactorying running utils