Updated log reg scripts