Re-factor frame parsing out of the print functions