Fix to allow multiple files from the same student. Works but needs some refactoring.