Tagged line-planning