Use slices instead of variadic function