Added some traces: Discovered that there is a third returned function that is actually the partial information we needed! Victory !
Allows to io.write() more things now
IT FINALLY WORKS AS IT SHOULD OMG I'VE JUST HIT THE NIRVANA