Implemented decodeNode