Complete encoder section.