Added in break logic to rendering