trigger as date now working
Restore session state appears to be working.