Add resize method.