Added support for :rest parameter.