Changes in factories; Adds resize operation.