Add handling for INF duration for Periodic.

Fixes #14