Change file open mode to append