Added sprite handling