Removed substractLP function as it was redundant.