Added timer directive and timer factory for timer countdown logic