Finish work on frame writing commands