Remove re-sizing code