Implement rudimentary queue and avg calculator.

I really hope this isn't complete rubbish :sweat_smile:.
If channel doesn't exist, the function should return *-infinite*.