Adding smartscan mode with open file hook to enable it