Refactoring interrupt pins.