Change global function in Trafic to local function.