Added function restartcgminer