First commit. Decoding with Duration implemented.