Added more logging to catch duplicate frames