Added session factory class.