Hi,
The following post might get you close.
http://forum.mikrotik.com/t/v7-1beta2-development-is-released/142356/1