Enhanced to redirect file access.