A couple of useful utility scripts