No more global variable in Linear_logs