Added periodic functionality and sample config file