Added interrupt code for RC inputs