Changed 'exit' to 'break'