Finalisation

TODO: Reading from IO streams in realtime