Added a infinite loop with exit code