Change capture into writer