Added resize method