Included checks for regular files only.