Add support for resize