Replace usage of break