I thought that Darwinian dogma excluded goals.
There is, of course, an assumed selection gradient here, which would function over time as a "goal". Assuming the assumed gradient actually exists.