Added middleware playback. App is crashing need to fix!