in exchange for a promise to appear in court whenever he will be asked to appear