Added some basic framework for keeping track of sprites.