Adds resize method