Removed OpenNewSession function to avoid creating memory leaks