Get rid of global trace variable