Finalized logbook function.