Convert multiple arguments into a single function & simplify your code.