Replaced various scripts by a single modular one.