Changes for FileWriter to append