Fix for direct playback
Debugging code.