Added function for storing minute documents.