Make sessions per gear configurable and use moving average for num sessi...

...ons