Added missing 'scalar' function.