Passsing memory parameter.