Only the allocation is needed so the parameter list reduced to one parameter. Also renamed to reflect better meaning.