Major script overhaul.