Smart resize added