New separate file to track encoding stage