Added interrupt trap and rescue blocks