Add collision implementation.