Moving average sort of working (further tests incoming)