Added periodic scheduling.