Rename variable totalExecutors and clean codes