Fixing a major security issue and putting in more tests to handle the new code.