Resize is now almost working