Added interrupt functions.