Added first decoding functionality