Added additional debug information for symlink function