Adding external interuption. Removing the unused variable warnings.