Updated collision handler.