Pull some logic into more-stress-boxes template