Added resize functions.