Code improvements, removed lots of dynamic allocation. Updated segment access protocol and Train_pool dequeue policy (to_fix). Next (and last) step is to update also platform policy to introduce priority