Made sparse functions simple overloads instead of separate.