Added session controller. Modified design.