Use variables and check if files are readable.