Debugging code for fixing missing frame problems
Added debugging information to the files for tracking missing frames