Sessions refactored.