Made interval configurable