Modified decide_state_per_pool.pl to check state and session when deciding which set is in on the LB