FULLPIPE: Attempt to fix flickering. Added debug output