Minor changes on how to deal with sprites.