Reducing error produced by resize and addressing code review feedback.