Stopped passing around config variables during counting.