Complete refactor, including changing secrets from hash to array to support indexed reference.
Adjusted example