Making infinite loop less infinite.