Added example.
Added checking returned flag from callback.