Made integer math work on an arbitrary number of arguments