Scripts and bits of code for minc files.