Added session resume functionality