Made the model sample work.