Alex Millers utils and scratch code