Modified edge-triggerred interrupt handling method to make 

