Only call callback at end of response