Finished cleaning up pirateTracks. Re-added three functions left out last
time. None of them are called by current code.