Add cyclic boundaries.