Almost done encoding