Some changes to roi scripts