Reimplement CoSenS using messages, to minimize the use of hwtimers