Code tidbits that I'll have to organize later.