Making hook to automatically update files silent