The court that makes a transfer order under section 28 (5) may vary the terms and conditions of the order.