This isn't used except in add_log which isn't called?