Added external storage check.