Various helpful code tidbits.