Making changes caught by @ARPeters at https://github.com/ARPeters/REDCapR/commit/97e1a8a59574ae328e30be70bbc50a90e0fec104