Various utilities for writing scripts.