Added interrupt function to prevent CTRL C accident.