Pretified code for printing generated frames.