Addedd some session functionality