Updated variables for initial encode.