Averaging stabilisation works, but this is test code no yet