Implemented framing, and related tests