Improve session appending