Fighting terrorism and protecting civil liberties