Added file writers for internal and external storage