Add some minor improvements to the API to make it easier to integrate into
games.