Fixed a few types.
Actually create the EncodeThread instance.