What does break; do in this function?