Added resizing capabilities.