Before the information is presented the prosecutor is to be required to give security, in such amount and in such manner as the court on giving leave to present the information may direct, that the prosecutor will prosecute the information without delay, and will pay to the accused person such costs incurred by the accused person in respect of the person’s defence to the charge as the court may order the prosecutor to pay.