Made clarity credentials work with environment variables.