not working. Added decoding.