Have lineitem-specific applications happen in all cases; add weightsto control