Add collision check.