added param for interval
Merge pull request #2 from arg0s/master

added param for interval