Added support for specifying a secret