Added period grouping

Fixed pause.