Add a few decoding function for version