Remove from heat and add vanilla and peanut butter. Stir until smooth.
Add cornflakes and mix until well coated.
Drop by teaspoon onto waxed paper and allow to cool.