Write request & response callbacks