Added collsion testing.