Made the update of frames in compare frames much faster. Added checks so that it doesn't break