Added sprite code