Implemented hooks and filtered hooks for different phases of the document store