Implemented support for complex runner scenarios. Added session tests.