Moved where Interval is defined.
Hopefully fixed importing issues.