Implemented overlap testing.