section 499(4)


499(4) Where a person has entered into an undertaking under subsection (2), the prosecutor may (a) at any time before the appearance of the person pursuant to a promise to appear or recognizance, after three days notice has been given to that person, or (b) at the appearance, apply to a justice for an order under subsection 515(2) to replace the undertaking, and section 515 applies, with such modifications as the circumstances require, to such a person.