Added repeat directive.  Not quite done.