Implement rudimentary queue and avg calculator.

I really hope this isn't complete rubbish :sweat_smile:.
If the channel doesn't exist, you are not adding the value to the array.