Miscellaneous utility code and tutorials