Added resize support.