Adding session stuff.