Log_tok finished, without globals