Attempted to add functions that use sessions