use Interval type instead of string
Merge pull request #8 from ridoo/master

use Interval type instead of string