Implemented session controls.