Change stop slot to pause in main class.