Some improvements and fixes. DRAFT

* More optimized using of starting frame;
* Fix user_memory in buffer exchaqnge call;
* Fix exchanged buffer recoriding processing;
* Some cleanup.