Now the output is only refreshed when there is new output.
This is still work in progress