Added functionality to get secret key from config file