This ensures that there are the proper keys so the check below does not fail. This may be legacy though. I'll double check that this is still needed after all of the other changes.