Added config boolean for saving the resultd or not
merged