Initial frame implementation.
Needs checking wrt per-frame size.