Added collision check.