Although the end be last in the order of execution, yet it is first in the order of the agent's intention. And it is this way that it is a cause.