Implement and used resize.