Add file_exists check.