Changed internal session structure an added Runnable interface