Commented out the while(running) loop for now as it wasn't being used.