Create function that reduces the arguments