Renamed resize function