Started debugging,

it runs, but encounters problems pretty quickly. I think the streams are
to blame, I'm changing them.