Paus function added, exit out of current session function added.