LP methods split and cleaned up.