Added inherited flag to annotation.
Added empty commands handling.