Rewritten timer to work for groups