Fixed linear least and added linear last