Almost fixed basic line-solver (stacker)