Use a copy of params in input checking, so that we don't mess with the original value