Occasionally; intermittently; irregularly; now and then; once in a while.
On different tacks, now toward, and now away from, the land.