Better hooks for local files.