Adding missing parameter to function.