Basically no changes.
Added upper part of the frame generation