Added ability to use secret agent name