Implemented delegate callback, and completed basic working demo app.