Wesley's framing code.