Updated collision check.