Refactoring, make process parameter optional in asyncAppendFileWithData: method