Make sample period configurable