A bunch of utilities for AI