Implement interval check, more tests.