Wrote the majority of DecodeManager functionality.