Added collision test.