Brian's utility scripts