Added temporary main method for Session and Factory etc