Except as provided for or varied by this Act, all procedure, including the computation of and other matters with respect to costs, shall be as near as may be according to the procedure under the Criminal Code.