Refactor names write()-->process()