I'm normally way too lazy to bother rating code and submissions, but this deserves to be an exception to the rule. Very minor quibble: I'd have liked one of the demo files to have incorporated the use of external vectors/matrices. Otherwise a very concise and usable (and, more importantly, utterly useful) piece of code. Thank you Markus.