diff --git a/classes/file_storage.php b/classes/file_storage.php
index ea9fd52ffc15a0f4acdaea42e09f3ab2c64e9322..b6f2f77ddf7b397242084130aac9ef4c96149028 100644
--- a/classes/file_storage.php
+++ b/classes/file_storage.php
@@ -179,23 +179,43 @@ class file_storage implements \H5PFileStorage {
     }
 
     /**
-     * Removes given export file
+     * Get file object for given export file.
      *
      * @param string $filename
+     * @return stdClass Moodle file object
      */
-    public function deleteExport($filename) {
+    private function getExportFile($filename) {
         global $COURSE;
         $context = \context_course::instance($COURSE->id);
 
         // Check if file exists.
         $fs = get_file_storage();
-        $file = $fs->get_file($context->id, 'mod_hvp', 'exports', 0, '/', $filename);
+        return $fs->get_file($context->id, 'mod_hvp', 'exports', 0, '/', $filename);
+    }
+
+    /**
+     * Removes given export file
+     *
+     * @param string $filename
+     */
+    public function deleteExport($filename) {
+        $file = $this->getExportFile($filename);
         if ($file) {
             // Remove old export.
             $file->delete();
         }
     }
 
+    /**
+     * Check if the given export file exists
+     *
+     * @param string $filename
+     * @return boolean
+     */
+    public function hasExport($filename) {
+      return !! $this->getExportFile($filename);
+    }
+
     /**
      * Will concatenate all JavaScrips and Stylesheets into two files in order
      * to improve page performance.
diff --git a/classes/framework.php b/classes/framework.php
index f8437eb24a3adbb57e4787bf9b3ab9bf38797930..a43597ab86e64d12528e6ce2256f3c20cb8278d1 100644
--- a/classes/framework.php
+++ b/classes/framework.php
@@ -1222,4 +1222,9 @@ class framework implements \H5PFrameworkInterface {
         ));
     }
 
+    /**
+     * Implements afterExportCreated
+     */
+    public function afterExportCreated() {
+    }
 }
diff --git a/library b/library
index 6b6d4cd109a0d187f6523fa1428a9a0440917c05..c9e5680e852ddc579e78b467504cb6bec40e0e0c 160000
--- a/library
+++ b/library
@@ -1 +1 @@
-Subproject commit 6b6d4cd109a0d187f6523fa1428a9a0440917c05
+Subproject commit c9e5680e852ddc579e78b467504cb6bec40e0e0c