Extract method from execute