Added checking for duplicate argument names