Improved resize accepted parameters.