Add readDictionary and Decode func