Added collision filtering.