Added pre and post hooks for commit and create.