Added code from session