Added functions for storing files by hash.