try
  if pauseit
    disp('Paused...')
    pause
    disp('...continuing')
  end
catch
  warning('attempt to use pause_it function but pauseit=[]')
end
