Log routines mostly done, arg parsing almost done.