Remove unneeded code used to break out of loop