Disabled looping in basic example and added callbacks
Added looping example