Change shape of the frames state to make frame handling easier.
Implement support for communicating with a specific view port.