Added methods to implement interupt service routines