Added getCurrentInterval() for easer in range checks.