Added KEEP-TIES functionality.