Move reply.Done assignment at the end