Added Decode functionality back into the project