Change json format
Make miserables data more like the final function/call data
Remove previous nodes technique to simplify approach, maybe at a performance cost?