Commented and made main loop terminate