Rewritten cTimer not to use heap allocation.