Miscellaneous mini-scripts