Somewhat better separation of authentication code in from the rest.