Changed function to use variable times instead of using static number
Merge pull request #361 from zysh/fetch_config_patch

Changed function to use variable param instead of static number