Optimize codes due to changed worker's related codes