Buffer messages received when inactive. Refactor active to more local place in code.