Add sugar to the mixture followed by the coconut milk. Mix and cook for another 10 minutes. Mixture will thicken because of the tapioca pearls. Keep stirring to make sure mixture is not sticking to the bottom of the pot.