Changed to return scalar size