Introduced pre/post handling in processor. Fixed session tests.