Thomas Aquinas,
Summa Theologiae — Question 1 - OF MAN'S LAST END…
“ One need not always be thinking of the last end, whenever one desires or does something: but the virtue of the first intention, which was in respect of the last end, remains in every desire directed to any object whatever, even though one's thoughts be not actually directed to the last end. Thus while walking along the road one needs not to be thinking of the end at every step. ”
