Adding recursive LPS