Worked on EncodeManager to the point that it could be tested