Added the argument comfig for build sample configuration function.