Added (rough) real-time plotting